<extend name="Base:main" />
<block name="title">
<title>商家管理</title>
</block>
<block name="main-content">
<div class="row">
	<div class="box col-md-12">
		<div class="box-inner">
			<div class="box-header well" data-original-title="">
				<h2>
					<i class="glyphicon glyphicon-user"></i>用户管理
				</h2>

				<div class="box-icon">
					<a href="#" class="btn btn-setting btn-round btn-default"><i
						class="glyphicon glyphicon-cog"></i></a> <a href="#"
						class="btn btn-minimize btn-round btn-default"><i
						class="glyphicon glyphicon-chevron-up"></i></a> <a href="#"
						class="btn btn-close btn-round btn-default"><i
						class="glyphicon glyphicon-remove"></i></a>
				</div>
			</div>
			<div class="box-content">
				<div class="alert alert-info">对注册用户进行查看以及管理</div>
				<table
					class="table table-striped table-bordered bootstrap-datatable datatable responsive">
					<h4>
						<i class="fa fa-angle-right"></i>食品列表
					</h4>
					<hr>
					<thead>
						<tr>
							<th>食品样图</th>
							<th>食品名称</th>
							<th>食品类型</th>
							<th>食品标签</th>
							<th>食品单价</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<foreach name="list" item="v">
						<tr>
							<td><img style="width: 80px; height: 60px;"
								src="{$v['food_image']}" /></td>
							<td>{$v.food_name}</td>
							<td>{$v.type}</td>
							<td>{$v.food_tag}</td>
							<td>{$v.price}/{$v.unit}</td>
							<td>
								<button class="btn btn-primary btn-xs"
									onclick="edit({$v['id']});">
									<i class="glyphicon glyphicon-edit icon-white"></i>
								</button>
								<button class="btn btn-danger btn-xs" onclick="del({$v['id']});">
									<i class="glyphicon glyphicon-trash icon-white"></i>
								</button>
							</td>
						</tr>
						</foreach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<!--/span-->

</div>
<!--/row--> </block>